import request from '@/utils/request'

// 查询货运方式列表
export function listFreightMethod(query) {
  return request({
    url: '/sale/FreightMethod/list',
    method: 'get',
    params: query
  })
}

// 查询货运方式详细
export function getFreightMethod(id) {
  return request({
    url: '/sale/FreightMethod/' + id,
    method: 'get'
  })
}

// 新增货运方式
export function addFreightMethod(data) {
  return request({
    url: '/sale/FreightMethod',
    method: 'post',
    data: data
  })
}

// 修改货运方式
export function updateFreightMethod(data) {
  return request({
    url: '/sale/FreightMethod',
    method: 'put',
    data: data
  })
}

// 删除货运方式
export function delFreightMethod(id) {
  return request({
    url: '/sale/FreightMethod/' + id,
    method: 'delete'
  })
}
